package string;

import java.util.Scanner;

public class StringTest3 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请您录入一局话");
        String line = sc.nextLine();

        int smallCount = 0;
        int bigCount = 0;
        int numCount = 0;
        int otherCount = 0;
        for (int i = 0; i < line.length(); i++) {
            char ch = line.charAt(i);
            if ('a' <= ch && ch <='z'){
                smallCount++;

            }else if ('A' <= ch && ch <= 'Z'){
            bigCount++;


            }else if ('0' <= ch&&ch <= '9'){
                numCount++;

            }else {
                otherCount++;
            }

        }
        System.out.println(smallCount);
        System.out.println(bigCount);
        System.out.println(otherCount);



    }
}
